<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品栏目</title>
	<script type='text/javascript' src='http://localhost/dshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/dshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/dshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/dshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/dshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/dshop';
		WEB = 'http://localhost/dshop/index.php';
		URL = 'http://localhost/dshop/index.php?a=Admin&c=Goods&m=selectCategory';
		HDPHP = 'http://localhost/dshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/dshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/dshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/dshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/dshop/index.php?a=Admin';
		CONTROL = 'http://localhost/dshop/index.php?a=Admin&c=Goods';
		METH = 'http://localhost/dshop/index.php?a=Admin&c=Goods&m=selectCategory';
		GROUP = 'http://localhost/dshop/hd';
		TPL = 'http://localhost/dshop/hd/Tshop/Admin/Tpl';
		CONTROLTPL = 'http://localhost/dshop/hd/Tshop/Admin/Tpl/Goods';
		STATIC = 'http://localhost/dshop/Static';
		PUBLIC = 'http://localhost/dshop/hd/Tshop/Admin/Tpl/Public';
		HISTORY = 'http://localhost/dshop/index.php?a=Admin&c=Goods&m=index';
		HTTPREFERER = 'http://localhost/dshop/index.php?a=Admin&c=Goods&m=index';
</script>
</head>
<body>
	<div class="menu_list">
		<ul>
			<li>
				<a href="javascript:;" class="action"> 
					商品栏目
				</a>
			</li>
			<li>
				<a href="<?php echo U('Category/add');?>"> 
					添加栏目
				</a>
			</li>
			
		</ul>
	</div>
	<form action="<?php echo U('add');?>" method="get">
		<input type="hidden" name="a" value="Admin"/>
			<input type="hidden" name="c" value="Goods"/>
			<input type="hidden" name="m" value="add"/>
		<select name="cid" class="w400" size="20" >
			<?php $hd["list"]["c"]["total"]=0;if(isset($category) && !empty($category)):$_id_c=0;$_index_c=0;$lastc=min(1000,count($category));
$hd["list"]["c"]["first"]=true;
$hd["list"]["c"]["last"]=false;
$_total_c=ceil($lastc/1);$hd["list"]["c"]["total"]=$_total_c;
$_data_c = array_slice($category,0,$lastc);
if(count($_data_c)==0):echo "";
else:
foreach($_data_c as $key=>$c):
if(($_id_c)%1==0):$_id_c++;else:$_id_c++;continue;endif;
$hd["list"]["c"]["index"]=++$_index_c;
if($_index_c>=$_total_c):$hd["list"]["c"]["last"]=true;endif;?>

				<option value="<?php echo $c['cid'];?>"><?php echo $c['_name'];?></option>
			<?php $hd["list"]["c"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</select>
		<div class="position-bottom">
		<input type="submit" value="确定" class="hd-success">
		</div>
	</form>
	
</body>
</html>